<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Student extends Model
{
    protected $guarded = ['id'];

    public function books(){
        return $this->belongsToMany('App\Model\Book')->withPivot('return_date');
    }
}
